---
layout: "default"
title: "OutputStreamType"
description: "Swift documentation for 'OutputStreamType': A target of text streaming operations."
keywords: "OutputStreamType,protocol,swift,documentation,write"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">protocol OutputStreamType</code></div>

<div class="discussion comment">
    <p>A target of text streaming operations.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>







<h3>Instance Methods</h3>
<div class="declaration" id="func-write_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-write_">mutating func write(<wbr>_:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-write_"><div class="p">
    <p>Append the given <code>string</code> to this stream.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">mutating func write(string: String)</code>
    
    
</div></div>
</div>


